package com.csailing4cloud.csailing.redis.test.mapper;

import com.csailing4cloud.csailing.redis.test.entity.AirPort;
import org.springframework.stereotype.Service;

@Service
public class CacheTestMapper {

    public AirPort getByCode(String code){
        AirPort airPort = new AirPort();
        airPort.setCode(code);
        airPort.setId(code);
        airPort.setName(code);
        return airPort;
    }
}
